//
//  AXFLocationTableViewCell.m
//  MineOrderUI
//
//  Created by mac2 on 16/11/20.
//  Copyright © 2016年 mac2. All rights reserved.
//

#import "AXFLocationTableViewCell.h"
#import "Masonry.h"
@implementation AXFLocationTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        [self setupUI];
    }
    return self;
}


-(void)setupUI{
    UILabel *label = [[UILabel alloc]init];
    label.font = [UIFont systemFontOfSize:15];
    UIImageView *locationImage = [[UIImageView alloc]init];
    [self addSubview:label];
    [self addSubview:locationImage];
    locationImage.image = [UIImage imageNamed:@"v2_address_locate"];
    label.text = @"模拟数据...";
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.centerX.mas_equalTo(self).offset(30);
    }];
    [locationImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(label.mas_left).offset(-10);
        make.centerY.equalTo(self);
    }];
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
